<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			class Person {
				constructor(nation, skincolor) {
					this.nation = nation;
					this.skincolor = skincolor;
				}
				show() {
					alert(this.nation);
				}
				show2() {
					alert(this.skincolor)
				}
			}
			class Woman extends Person {
				constructor(sex,nation,skincolor) {
					super(nation,skincolor);
					this.sex = sex;
				}
				show3() {
					super.show();
					super.show2();
					alert(this.sex);
				}
			}
			var a=new Woman("男","中国","黄");
			a.show3();
		</script>
	</head>
	<body>
	</body>
</html>
